import {useSceneStore} from '@/stores/scene'
import { mittTypes } from '@/util/types';
let _this;
class visemeControl{
    cacheMap= new Map();
    emitter= null;
    sceneStore=useSceneStore();
    constructor(emitter){
        this.emitter = emitter
        _this = this;
    }
    start(data){
        console.log(this.sceneStore.animationRefList)
        _this.emitter.emit(mittTypes.WEBHUMAN.VISEME_PLAY,{
            viseme:[data.viseme]
        })
    }
    update(data){
        // _this.emitter.emit(mittTypes.WEBHUMAN.ACTION_SET_BY_TIME,{
        //     actionName:data.action.data.actionName,
        //     time:data.time
        // })
    }
    stop(action){
        _this.emitter.emit(mittTypes.WEBHUMAN.VISEME_STOP)
       
    }
}

export default visemeControl;